package me.helllp.demo.dubboxStudy.listener;

import com.alibaba.dubbo.common.URL;
import com.alibaba.dubbo.rpc.cluster.Configurator;

public class DemoDubboConfigurator implements Configurator{
	private URL url;
	public DemoDubboConfigurator(URL url){
		this.url = url;
	}
	
	@Override
	public int compareTo(Configurator o) {
		return 0;
	}

	@Override
	public URL getUrl() {
		return this.url;
	}

	@Override
	public URL configure(URL url) {
		//	这里是我们对URL进行定制的地方
		return url.addParameter("demoName", "linxm");
	}

}
